package br.com.sig.cadastro.recursoshumanos.business.model.bo;

import javax.ejb.Stateless;
import javax.inject.Named;

import br.com.sig.business.exception.BaseException;
import br.com.sig.business.model.BaseService;
import br.com.sig.cadastro.recursoshumanos.business.model.entity.Departamento;

@Named
@Stateless
public class DepartamentoBO extends BaseService<Departamento> {

	private static final long serialVersionUID = -5389147310894695526L;
	
	public Departamento get(br.com.sig.cadastro.recursoshumanos.business.model.enumeration.Departamento departamento) throws BaseException {
		Departamento dep = new Departamento();
		dep.setNome(departamento.toString());
		return findSingleResult(dep);
	}
}